﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TmU220PrintHelperV2d0.HttpHelper
{
    /// <summary>
    /// 用于针对特定数据表的api接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiInterfaceReturnDataV2d0<T>
    {
        /// <summary>
        /// 返回状态码，00为正常，-1为异常
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 返回数据内容,字符串json格式
        /// </summary>
        public List<T> content { get; set; }
    }

    /// <summary>
    /// 用于通用数据表的接口 【getDatabySql】【getDataByParam】
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiInterfaceReturnDataPlusV2d0<T>
    {
        /// <summary>
        /// 返回状态码，00为正常，-1为异常
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 返回数据内容,字符串json格式
        /// </summary>
        public List<T> content { get; set; }
        public string message { get; set; }
    }

}
